import request from "@/utils/request";
// 小程序培训相关接口
export const studyApi = {
  // 查询所有课程分类
  STUDYGETALLCATEGORY: (params) => request.post("/front/study/getAllCategory", params),
  // 查询所有已上架课程
  STUDYGETALLCOURSEY: (params) => request.post("/front/study/getAllCourse", params),
  // 查询课程详情(课程id)
  STUDYGETCOURSEDETAILBYID: (params) => request.post("/front/study/getCourseDetailById", params),
  // 查询课程或任务列表
  STUDYGETCOURSEORTASKLIST: (params) => request.post("/front/study/getCourseOrTaskList", params),
  // 查询试题详情(考题id)
  STUDYGETEXAMINATIONBYID: (params) => request.post("/front/study/getExaminationById", params),
  // 查询我的考试列表
  STUDYGETMYTESTLIST: (params) => request.post("/front/study/getMyTestList", params),
  // 根据条件统计荣耀榜
  STUDYGETRANKBYCONDITION: (params) => request.post("/front/study/getRankByCondition", params),
  // 根据课程id查询已派任务员工
  STUDYGETSTAFFBYCOURSEID: (params) => request.post("/front/study/getStaffByCourseId", params),
  // 查询员工课程参与情况
  STUDYGETSTAFFCOURSEJOINDETAILLIST: (params) => request.post("/front/study/getStaffCourseJoinDetailList", params),
  // 查询员工课程参与比例列表
  STUDYGETSTAFFCOURSEJOINLIST: (params) => request.post("/front/study/getStaffCourseJoinList", params),
  // 总学习率和总考试通过率查询
  STUDYGETTOTALWATCHDATA: (params) => request.post("/front/study/getTotalWatchData", params),
  // 点赞或取消点赞课程(课程id)
  STUDYLIKEORUNLIKETOCOURSEBYID: (params) => request.post("/front/study/likeOrUnLikeToCourseById", params),
  // 保存分配员工课程
  STUDYSAVESTAFFTASK: (params) => request.post("/front/study/saveStaffTask", params),
  // 提交考试(有返回积分就显示，没就不显示)
  STUDYSUBMITANSWER: (params) => request.post("/front/study/submitAnswer", params),
  // 观看视频调用修改课程状态为进行中或已完成(课程id)
  STUDYUPDATECOURSESTATUSBYID: (params) => request.post("/front/study/updateCourseStatusById", params),
   // 查询我的积分记录
   STAFFGETMYINTEGRATIONRECORD: (params) => request.post("/front/staff/getMyIntegrationRecord", params),
   // 查询个人中心信息
   FRONTSTAFFGETPERSONINFO: (params) => request.post("/front/staff/getPersonInfo", params),
   // 查询个人资料
   FRONTSTAFFGETSTAFFDETAIL: (params) => request.post("/front/staff/getStaffDetail", params),
   //保存个人资料
   FRONTSTAFFSAVESTAFFINFO: (params) => request.post("/front/staff/saveStaffInfo", params),
   // 修改密码
   FRONTSTAFFUPDATEPASSWORD: (params) => request.post("/front/staff/updatePassword", params),
   // 登录
   frontLogin: (params) => request.post("/front/login", params),
   // 退出登录
   exitLogin: (params) => request.get("/layout", params),
   // 获取用户信息
   getUserProfile: (params) => request.get("/user/profile", params)
};
